package Book;

public class BookList {

    public Book[] books = new Book[10];
    private int usedSize;

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }

    public BookList(){

        books[0] = new Book("aaa", "a", 1, "a");
        books[1] = new Book("baaa", "b", 1, "a");
        books[2] = new Book("caaa", "c", 1, "a");
        this.usedSize = 3;
    }
    public int getUsedSize() {
        return usedSize;
    }

    public void setBooks(Book book, int pos) {
        books[pos] = book;
    }

    public Book getPos(int i){
        return books[i];
    }
}
